package com.ruoyi.app.controller.marketing.mapper;

import com.ruoyi.common.core.dao.BaseMapper;
import com.ruoyi.common.entity.DO.product.ShopProductCouponLinkDO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IShopProductCouponLinkMapper extends BaseMapper<ShopProductCouponLinkDO> {

    @Select("SELECT coupon_id from shop_product_coupon_link WHERE shop_id=#{shopId} and product_id=#{productId}")
    List<Long> searchIdList(@Param("shopId") Long shopId, @Param("productId") Long productId);
}
